public class test {
    public static void main(String[] args) {
        System.out.println(Math.pow(932,200)%1337);
    }
}
